system to use; if all are omitted, use X11 if present. If you
don't want X, specify \`--with-x=no'.
-The --x-includes=DIR option tells the build process where to search for
- the X Windows header files. If this option is omitted, the
- build process assumes they exist in a directory the compiler
- checks by default.
+The --x-includes=DIR option tells the build process where to search
+ for the X Windows header files. DIR should have a
+ subdirectory called \`X11' which contains \`X.h', \`Xlib.h', and
+ the rest of the header files; DIR should not contain \`X11'
+ itself. If this option is omitted, the build process assumes
+ they exist in a directory the compiler checks by default.
The --x-libraries=DIR option tells the build process where to look for
the X windows libraries. If this option is omitted, the build
### names.
config_h_opts=" \
HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \
-SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\
+SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST \
LD_SWITCH_X_SITE C_SWITCH_X_SITE HAVE_XFREE386"
### Record all the arguments, so we can save them in config.status.
esac
## Change `-' in the option name to `_'.
+ optname="${opt}"
opt="`echo ${opt} | tr - _`"
## Process the option.
y | ye | yes ) val=yes ;;
n | no ) val=no ;;
* )
- (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value.
+ (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
Set it to either \`yes' or \`no'."
echo "${short_usage}") >&2
exit 1
y | ye | yes ) val=yes ;;
n | no ) val=no ;;
* )
- (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value.
+ (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
Set it to either \`yes' or \`no'."
echo "${short_usage}") >&2
exit 1
if [ "${valomitted}" = "yes" ]; then
## Get the next argument from the argument list, if there is one.
if [ $# = 1 ]; then
- (echo "${progname}: You must give a value for the \`--${opt}' option, as in
- \`--${opt}=FOO'."
+ (echo "${progname}: You must give a value for the \`--${optname}' option, as in
+ \`--${optname}=FOO'."
echo "${short_usage}") >&2
exit 1
fi
## I think these are dopey, but no less than three alpha
## testers, at large sites, have said they have their X files
## installed in odd places.
- "x-includes" )
+ "x_includes" )
## If the value was omitted, get it from the next argument.
if [ "${valomitted}" = "yes" ]; then
## Get the next argument from the argument list, if there is one.
if [ $# = 1 ]; then
- (echo "${progname}: You must give a value for the \`--${opt}' option, as in
- \`--${opt}=FOO'."
+ (echo "${progname}: You must give a value for the \`--${optname}' option, as in
+ \`--${optname}=FOO'."
echo "${short_usage}") >&2
exit 1
fi
x_includes="${val}"
C_SWITCH_X_SITE="-I${x_includes}"
;;
- "x-libraries" )
+ "x_libraries" )
## If the value was omitted, get it from the next argument.
if [ "${valomitted}" = "yes" ]; then
## Get the next argument from the argument list, if there is one.
if [ $# = 1 ]; then
- (echo "${progname}: You must give a value for the \`--${opt}' option, as in
- \`--${opt}=FOO'."
+ (echo "${progname}: You must give a value for the \`--${optname}' option, as in
+ \`--${optname}=FOO'."
echo "${short_usage}") >&2
exit 1
fi
window_system=none
if [ -r /usr/lib/libX11.a \
-o -d /usr/include/X11 \
- -o -d /usr/X386/include]; then
+ -o -d /usr/X386/include ]; then
window_system=x11
fi
;;
if [ -d /usr/X386/include ]; then
HAVE_XFREE386=yes
if [ "${C_SWITCH_X_SITE}" = "" ]; then
- C_SWITCH_X_SITE="-I/usr/X386/include
+ C_SWITCH_X_SITE="-I/usr/X386/include"
fi
fi
;;